//路由表：默认页面

const router = [
  {
    path: 'basicInformation',
    component: 'personalCenter/basicInformation/index',
    name: 'BasicInformation',
    meta: {
      title: '基本资料',
      roles: ['editor', 'admin']
    }
  },
  {
    path: 'leadMark',
    component: 'personalCenter/leadMark/index',
    name: 'LeadMarkList',
    meta: {
      title: '院领导评分',
      roles: ['editor']
    }
  },
  {
    path: 'leadMark/mark/:id/:name?',
    component: 'personalCenter/leadMark/mark',
    meta: {
      title: '院领导评分-打分',
      hidden: true,
      pageHeader: false,
      activeMenu: '/personalCenter/leadMark',
      dynamicTitle(to) {
        const { name } = to.params
        return `院领导评分-给${name}打分`
      },
      usePathKey: true
    }
  },
  {
    path: 'directorEachOtherMark',
    component: 'personalCenter/directorEachOtherMark/index',
    meta: {
      title: '科主任互评',
      roles: ['editor']
    }
  },
  {
    path: 'directorMark',
    component: 'personalCenter/directorMark/index',
    meta: {
      title: '科主任评分',
      roles: ['editor']
    }
  },
  {
    path: 'interiorMark',
    component: 'personalCenter/interiorMark/index',
    meta: {
      title: '科内评分',
      roles: ['editor']
    }
  },
  {
    path: 'groupEachOtherMark',
    component: 'personalCenter/groupEachOtherMark/index',
    meta: {
      title: '小组互评',
      roles: ['editor']
    }
  },
  {
    path: 'myWorkReport',
    component: 'personalCenter/myWorkReport/index',
    name: 'MyWorkReport',
    meta: {
      title: '个人工作小结',
      roles: ['editor']
    }
  },
  {
    path: 'myWorkReport/editReport/:id',
    component: 'personalCenter/myWorkReport/editReport',
    name: 'EditReport',
    meta: {
      title: '编辑工作小结',
      roles: ['editor'],
      hidden: true,
      pageHeader: false
    }
  },
  {
    path: 'myScore',
    component: 'personalCenter/myScore/index',
    meta: {
      title: '个人得分',
      roles: ['editor']
    }
  },
  {
    path: 'mail',
    component: 'personalCenter/mail/index',
    meta: {
      title: '站内信',
      roles: ['editor']
    }
  }
]

export default router
